/* 
	@Copyright (c) 2007 by Denis Riabtchik. All rights reserved. See license.txt and http://jgrouse.com for details@
	$Id: JGDocException.java 352 2008-02-08 16:35:43Z broofa $
*/

package jgrouse.jgdoc;

public class JGDocException extends Exception
{
	private int m_lineNo = -1;
	private String m_fileName = null;

	private static final long serialVersionUID = -7904902487451934702L;


	public JGDocException(String pMessage, String file, int lineNo)
	{
		super(pMessage);
		setParams(file, lineNo);
	}
	
	public void setParams(String file, int lineNo)
	{
		m_fileName = file;
		m_lineNo = lineNo;
	}

	public String getFile()
	{
		return m_fileName;
	}

	public int getLine()
	{
		return m_lineNo;
	}
}
